home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
santas_gift_jump.swf
/
scripts
/
DefineSprite_85_cadou
/
frame_26
/
DoAction.as
Wrap
Text File
|
2007-01-16
|
11KB
|
398 lines
var §\x01§ = 450;
loop0:
while(true)
{
if(eval("\x01") == 450)
{
set("\x01",eval("\x01") - 96);
§§push(true);
continue;
}
if(eval("\x01") == 14)
{
set("\x01",eval("\x01") + 382);
§§push(true);
continue;
}
if(eval("\x01") == 511)
{
set("\x01",eval("\x01") - 236);
if(root.pauza == false)
{
i--;
if(i == 0)
{
play();
}
else
{
gotoAndStop("lup");
play();
}
}
else
{
gotoAndPlay(24);
}
break;
}
if(eval("\x01") == 68)
{
set("\x01",eval("\x01") + 388);
if(§§pop())
{
set("\x01",eval("\x01") + 183);
}
continue;
}
if(eval("\x01") == 130)
{
set("\x01",eval("\x01") + 381);
break;
}
if(eval("\x01") == 131)
{
set("\x01",eval("\x01") - 29);
if(§§pop())
{
set("\x01",eval("\x01") + 208);
}
continue;
}
if(eval("\x01") == 463)
{
set("\x01",eval("\x01") - 449);
stopDrag();
startDrag(§§pop(),§§pop(),§§pop(),§§pop(),§§pop(),§§pop());
break;
}
if(eval("\x01") != 102)
{
if(eval("\x01") == 354)
{
set("\x01",eval("\x01") + 109);
if(§§pop())
{
set("\x01",eval("\x01") - 449);
}
}
else if(eval("\x01") == 310)
{
set("\x01",eval("\x01") - 242);
§§push(true);
}
else if(eval("\x01") == 396)
{
set("\x01",eval("\x01") + 307);
if(§§pop())
{
set("\x01",eval("\x01") + 98);
}
}
else
{
if(eval("\x01") == 456)
{
set("\x01",eval("\x01") + 183);
break;
}
if(eval("\x01") == 578)
{
set("\x01",eval("\x01") - 447);
§§push(true);
}
else
{
if(eval("\x01") == 429)
{
set("\x01",eval("\x01") + 472);
§§push(§§pop() eq §§pop());
break;
}
if(eval("\x01") == 716)
{
set("\x01",eval("\x01") - 450);
if(§§pop())
{
set("\x01",eval("\x01") + 312);
}
}
else
{
if(eval("\x01") == 266)
{
set("\x01",eval("\x01") + 312);
§§push(§§pop() - 1);
break;
}
if(eval("\x01") == 316)
{
set("\x01",eval("\x01") + 238);
if(§§pop())
{
set("\x01",eval("\x01") - 174);
}
}
else if(eval("\x01") == 901)
{
set("\x01",eval("\x01") - 185);
§§push(true);
}
else if(eval("\x01") == 639)
{
set("\x01",eval("\x01") - 323);
§§push(true);
}
else if(eval("\x01") == 795)
{
set("\x01",eval("\x01") - 665);
if(§§pop())
{
set("\x01",eval("\x01") + 381);
}
}
else
{
if(eval("\x01") == 554)
{
set("\x01",eval("\x01") - 174);
break;
}
if(eval("\x01") == 703)
{
set("\x01",eval("\x01") + 98);
return §§pop();
}
if(eval("\x01") == 801)
{
set("\x01",eval("\x01") - 607);
§§push(true);
}
else
{
if(eval("\x01") == 275)
{
set("\x01",eval("\x01") - 275);
break;
}
if(eval("\x01") == 194)
{
set("\x01",eval("\x01") + 235);
if(§§pop())
{
set("\x01",eval("\x01") + 472);
}
}
else
{
if(eval("\x01") != 380)
{
break;
}
set("\x01",eval("\x01") + 415);
§§push(true);
}
}
}
}
}
}
continue;
}
set("\x01",eval("\x01") + 208);
while(true)
{
if(eval("\x01") == 647)
{
set("\x01",eval("\x01") - 319);
break loop0;
}
if(eval("\x01") == 569)
{
set("\x01",eval("\x01") - 116);
break loop0;
}
if(eval("\x01") == 16)
{
set("\x01",eval("\x01") + 682);
break loop0;
}
if(eval("\x01") == 250)
{
set("\x01",eval("\x01") + 102);
if(§§pop())
{
set("\x01",eval("\x01") + 472);
}
}
else
{
if(eval("\x01") == 352)
{
set("\x01",eval("\x01") + 472);
toggleHighQuality();
break loop0;
}
if(eval("\x01") != 40)
{
break loop0;
}
set("\x01",eval("\x01") - 24);
if(§§pop())
{
set("\x01",eval("\x01") + 682);
}
}
while(true)
{
if(eval("\x01") == 918)
{
set("\x01",eval("\x01") + 5);
§§push(true);
}
else if(eval("\x01") == 931)
{
set("\x01",eval("\x01") - 390);
if(§§pop())
{
set("\x01",eval("\x01") + 96);
}
}
else if(eval("\x01") == 453)
{
set("\x01",eval("\x01") - 203);
§§push(true);
}
else if(eval("\x01") == 923)
{
set("\x01",eval("\x01") - 276);
if(§§pop())
{
set("\x01",eval("\x01") - 319);
}
}
else
{
if(eval("\x01") == 637)
{
set("\x01",eval("\x01") + 182);
stop();
root = _parent._parent;
if(_parent._parent.level <= 5)
{
i = 3;
}
else
{
i = 2;
}
this._x = random(510) + 70;
this._y = 285;
viteza = 4;
onEnterFrame = function()
{
if(cadou._y < -190)
{
viteza = 4;
}
else if(viteza < 6)
{
viteza += 0.25;
}
if(cadou.hitTest(root.container.mos.mos2.manaMos.hitter))
{
root.contor = root.contor + 1;
root.cadouri = root.cadouri + 1;
if(root.container.mos._xscale == -100)
{
root.container.attachMovie("bonus","bonusMC" + root.contor,root.contor);
root.container["bonusMC" + root.contor]._y = cadou._y + 250;
root.container["bonusMC" + root.contor]._x = this._x + 50;
}
else
{
root.container.attachMovie("bonus","bonusMC" + root.contor,root.contor);
root.container["bonusMC" + root.contor]._y = cadou._y + 250;
root.container["bonusMC" + root.contor]._x = this._x - 50;
}
root.container.mos.mos2.manaMos.cadou.cadou2.gotoAndStop(frame + 1);
root.container.mos.mos2.frame = frame;
root.container.mos.mos2.manaMos.gotoAndPlay(3);
gotoAndStop("remove");
delete onEnterFrame;
}
else if(cadou.hitTest(root.container.mos.mos2.capMos.hitter) && root.upgradeCaciula == false)
{
_parent._parent.mosStat = "mort";
igrec = cadou._y;
gotoAndStop("lovit");
play();
delete onEnterFrame;
}
else if(root.pauza == false && root.mosStat != "mort")
{
if(cadou._y < 0)
{
cadou._y += viteza;
reflexie._y = (cadou._y - 47) * -1;
}
else
{
if(root.sunet)
{
root.cadouHit.start(0,1);
}
cadou._y = 0;
reflexie._y = 47;
gotoAndPlay(2);
delete onEnterFrame;
}
}
};
break loop0;
}
if(eval("\x01") == 698)
{
set("\x01",eval("\x01") + 233);
§§push(true);
}
else if(eval("\x01") == 240)
{
set("\x01",eval("\x01") + 329);
if(§§pop())
{
set("\x01",eval("\x01") - 116);
}
}
else
{
if(eval("\x01") == 541)
{
set("\x01",eval("\x01") + 96);
break loop0;
}
if(eval("\x01") == 824)
{
set("\x01",eval("\x01") - 784);
§§push(true);
}
else
{
if(eval("\x01") == 819)
{
set("\x01",eval("\x01") - 819);
break loop0;
}
if(eval("\x01") != 328)
{
break;
}
set("\x01",eval("\x01") - 88);
§§push(true);
}
}
}
}
}
}